package com.sheyu.mall.product.dao.category;

import com.sheyu.mall.product.entity.category.CategoryBrandRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 品牌分类关联
 *
 * @author sheyu
 * @email sheyu@XXX.com
 * @date 2020-07-27 12:44:31
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {

    Long selectByCatIdBySQL(@Param("catId") Long catId);

    List<CategoryBrandRelationEntity> selectListBySQL(@Param("brandId") Long brandId);

    long selectByBrandId(@Param("brandId") Long brandId);
}
